sysroot: Drop unnecessary `dup()` invocation
authorColin Walters <walters@verbum.org>
Sat, 27 Aug 2016 12:50:47 +0000 (08:50 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sun, 28 Aug 2016 13:56:03 +0000 (13:56 +0000)
commitcfc3934e81bd1cd083f089c9711d1324b2612c9f
tree2b24da54156bf4e59ce5bd75d3a593ededcc785b
parentb6ec7526b58fa6d42792c460f3eedff410cb2c60
sysroot: Drop unnecessary `dup()` invocation

It's close-on-exec, not close-on-fork.  I was clearly confused when
writing this; it works just fine to reference the fd in the child and
`fchdir()` before exec.  So drop the unnecessary duplication.

Just noticed this while reading the code for a random other reason.

Closes: #473
Approved by: giuseppe
src/libostree/ostree-sysroot.c